/**
 * @class cceaf.control.DistrictPicker
 * @extends cceaf.control.TreePicker
 * 
 * 选择地区树的下拉框
 */
Ext.define('cceaf.control.DistrictPicker', {
    extend: 'cceaf.control.TreePicker',
    requires: [
	    'cceaf.ControlDefaultConfig'
    ],
    alias: 'widget.cceafdistrictpicker',

    displayField: 'text',
    
    itemId:'districtpicker',
    //rootVisible: true,
    
    store: new Ext.data.TreeStore({
    	proxy: {
            type: 'ajax',
            url: 'pageDataProvider!getDistrictTreeList.action'
        },
        
        sorters: [{
	          property: 'leaf',
	          direction: 'ASC'
	    }, {
	          property: 'text',
	          direction: 'ASC'
	    }],
	    
        model: 'cceaf.model.main.TreeNodeModel',
        
        root: {
            expanded: true,
            text: '',
	        draggable:false,
	        id:''
        }
    }),
    
    width: 120

});

